package com.chpro.irm.main;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.chpro.irm.service.MessageProvider;

public class Main {
	public static void main(String[] args) {
		ApplicationContext act = new ClassPathXmlApplicationContext("spring/applicationContext-client.xml");
		MessageProvider mp = act.getBean("messageService",MessageProvider.class);
		System.out.println(mp.querymsg());
	}
}
